<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据监测分析</title>
    <jsp:include page="css.jsp"/>
    <jsp:include page="js.jsp"/>
    <script src="static/wechat/project/js/mainPage.js"></script>
    <style>
        .specialGroup {
            transform: translateZ(0); /* 提前启用GPU层 */
            backface-visibility: hidden; /* 修复移动端闪烁 */
        }
    </style>
</head>
<body>
<!-- 新增固定头部区域 -->
<div class="fixed-header">
    <section class="title-bar">
        <div class="title-content">
            <div class="title-text">环保在线预警查询系统</div>
        </div>
    </section>

    <div class="tabs">
        <div class="tab active" id="tab2011" data-type="realtime" onclick="changeDataType(2011)">实时数据</div>
        <div class="tab" id="tab2051" data-type="minute" onclick="changeDataType(2051)">分钟数据</div>
        <div class="tab" id="tab2061" data-type="hour" onclick="changeDataType(2061)">小时数据</div>
        <div class="tab" id="tab2031" data-type="day" onclick="changeDataType(2031)">日均数据</div>
    </div>
</div>

<!-- 滚动内容区域 -->
<div class="scrollable-content">
    <!-- 修改后的表格标题 -->
    <div class="table-title">
        <div class="table-title-text">废气排口</div>
    </div>
    <div class="data-cards" id="airDeviceDiv"></div>

    <!-- 修改后的表格标题 -->
    <div class="table-title">
        <div class="table-title-text">废水排口</div>
    </div>
    <div class="data-cards" id="waterDeviceDiv"></div>

    <!-- 修改后的表格标题 -->
    <div class="table-title" style="display: none;" onclick="changeSpecialGroupStatus(this)">
        <div class="table-title-text">特别分组</div>
    </div>
    <div class="data-cards" id="specialDeviceDiv" style="display: none;"></div>

    <!-- 修改后的表格标题 -->
    <div class="table-title" id="balanceTitle">
        <div class="table-title-text">排放量统计</div>
    </div>
    <div class="data-cards" id="balanceTable" style="margin-bottom: 1rem;">
        <div class="chart-container" id="main">
            <div class="custom-legend" id="customLegend"></div>
        </div>
    </div>
    <div class="data-cards" id="balanceTable2">
        <div class="chart-container" id="main2">
            <div class="custom-legend" id="customLegend2"></div>
        </div>
    </div>

    <!-- 修改后的表格标题 -->
    <div class="table-title" id="alarmReportDiv">
        <div class="table-title-text">预警情况统计分析</div>
    </div>
    <div class="data-cards">
        <div class="description-container">
            <div class="description-content">
                <p id="reportTitle"></p>
                <p id="reportContent"></p>
            </div>
        </div>
    </div>
</div>

<a href="javascript:void(0)" onclick="goBack(1)" class="back-btn">↶</a>
</body>
</html>